package com.roncoo.education;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

import com.spring4all.swagger.EnableSwagger2Doc;

@EnableSwagger2Doc
@EnableFeignClients
@ServletComponentScan
@SpringCloudApplication
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class OauthApplication {

    public static void main(String[] args) {
        SpringApplication.run(OauthApplication.class, args);
    }

}